package com.tf.integrated.service.impl;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;
import com.tf.integrated.dao.WarningresultfacepicwarndbtDao;
import com.tf.integrated.entity.WarningresultfacepicwarndbtEntity;
import com.tf.integrated.service.WarningresultfacepicwarndbtService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("warningresultfacepicwarndbtService")
public class WarningresultfacepicwarndbtServiceImpl extends ServiceImpl<WarningresultfacepicwarndbtDao, WarningresultfacepicwarndbtEntity> implements WarningresultfacepicwarndbtService<WarningresultfacepicwarndbtEntity>
{
    public PageUtils<WarningresultfacepicwarndbtEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<WarningresultfacepicwarndbtEntity> ew = new EntityWrapperHandle<WarningresultfacepicwarndbtEntity>(params);
        Page<WarningresultfacepicwarndbtEntity> page = this.selectPage(new Query<WarningresultfacepicwarndbtEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<WarningresultfacepicwarndbtEntity>(page);
    }

    public List<WarningresultfacepicwarndbtEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
